﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
    public class OrderDetailService
    {
        private readonly OrderDetailController _orderDetailController = new OrderDetailController();

        #region [OrderDetail_GetByAll]

        public DataTable OrderDetail_GetByAll()
        {
            return _orderDetailController.OrderDetail_GetByAll();
        }

        #endregion

        #region [OrderDetail_GetById]

        public DataTable OrderDetail_GetById(int id)
        {
            return _orderDetailController.OrderDetail_GetById(id);
        }

        #endregion

        #region [OrderDetail_Insert]

        public void OrderDetail_Insert(OrderDetailInfo orderDetail)
        {
            _orderDetailController.OrderDetail_Insert(orderDetail);
        }

        #endregion

        #region [OrderDetail_Update]

        public void OrderDetail_Update(OrderDetailInfo orderDetail)
        {
            _orderDetailController.OrderDetail_Update(orderDetail);
        }

        #endregion

        #region [OrderDetail_Delete]

        public void OrderDetail_Delete(int id)
        {
            _orderDetailController.OrderDetail_Delete(id);
        }

        #endregion
    }
}